package com.Cookie;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ListenerServlet extends Bservlet{
    public String contextOperation(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

        ServletContext context = this.getServletContext();

        context.setAttribute("a", "a");

        context.setAttribute("a", "A");

        context.removeAttribute("a");
        return "/index.jsp";
    }
}
